<?php

namespace ApiWF\Model;
use Think\Model\ViewModel;

class ActivityViewModel extends ViewModel {

    public $viewFields = array(
        'Activity'=>array('id','act_title','act_description','act_pic','act_status','start_time','end_time','act_type','reward_coin'),
        'ActivityRelationships'=>array('listorder','status', '_on'=>'ActivityRelationships.act_id=Activity.id'),
        'ActivityCategory'=>array('name', '_on'=>'ActivityCategory.cate_id=ActivityRelationships.cate_id'),
    );


}